package cn.wx.properties;

import cn.wx.common.properties.WxProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 公众号配置
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties(prefix = WxMpProperties.PREFIX)
public class WxMpProperties extends WxProperties {

    public static final String PREFIX = "wx.mp";

    public static final String DEFAULT = "default";

    /**
     * 公众号自动装配开关
     */
    private boolean enabled = true;

    /**
     * 多个公众号配置
     */
    private List<WxProperties> multiple;

}
